testing/fstest.fsTester.errorf (method)
50 uses
testing/fstest (current package)
testfs.go#L82: t.errorf("expected empty file system but found files:\n%s", strings.Join(list, "\n"))
testfs.go#L86: t.errorf("expected but not found: %s", name)
testfs.go#L104: func (t *fsTester) errorf(format string, args ...any) {
testfs.go#L111: t.errorf("%s: Open: %w", dir, err)
testfs.go#L117: t.errorf("%s: Open returned File type %T, not a fs.ReadDirFile", dir, f)
testfs.go#L135: t.errorf("%s: ReadDir(-1): %w", dir, err)
testfs.go#L150: t.errorf("%s: ReadDir: child has invalid name: %#q", dir, name)
testfs.go#L153: t.errorf("%s: ReadDir: child name contains slash: %#q", dir, name)
testfs.go#L156: t.errorf("%s: ReadDir: child name contains backslash: %#q", dir, name)
testfs.go#L178: t.errorf("%s: ReadDir(-1) at EOF = %d entries, %w, wanted 0 entries, nil", dir, len(list2), err)
testfs.go#L186: t.errorf("%s: ReadDir(1) at EOF = %d entries, %w, wanted 0 entries, EOF", dir, len(list2), err)
testfs.go#L192: t.errorf("%s: Close: %w", dir, err)
testfs.go#L206: t.errorf("%s: second Open+ReadDir(-1): %w", dir, err)
testfs.go#L224: t.errorf("%s: third Open: ReadDir(%d) after %d: %d entries (too many)", dir, n, len(list2), len(frag))
testfs.go#L232: t.errorf("%s: third Open: ReadDir(%d) after %d: %w", dir, n, len(list2), err)
testfs.go#L236: t.errorf("%s: third Open: ReadDir(%d) after %d: 0 entries but nil error", dir, n, len(list2))
testfs.go#L246: t.errorf("%s: fsys.ReadDir: %w", dir, err)
testfs.go#L253: t.errorf("%s: fsys.ReadDir: list not sorted: %s before %s", dir, list2[i].Name(), list2[i+1].Name())
testfs.go#L261: t.errorf("%s: fs.ReadDir: %w", dir, err)
testfs.go#L268: t.errorf("%s: fs.ReadDir: list not sorted: %s before %s", dir, list2[i].Name(), list2[i+1].Name())
testfs.go#L328: t.errorf("%s: Glob(%#q): bad pattern not detected", dir, glob+"nonexist/[]")
testfs.go#L360: t.errorf("%s: Glob(%#q): %w", dir, glob, err)
testfs.go#L368: t.errorf("%s: Glob(%#q): unsorted output:\n%s", dir, glob, strings.Join(names, "\n"))
testfs.go#L385: t.errorf("%s: Glob(%#q): wrong output:\n%s", dir, glob, strings.Join(problems, "\n"))
testfs.go#L393: t.errorf("%s: Open: %w", path, err)
testfs.go#L399: t.errorf("%s: Stat: %w", path, err)
testfs.go#L406: t.errorf("%s: mismatch:\n\tentry = %s\n\tfile.Stat() = %s", path, fentry, fientry)
testfs.go#L411: t.errorf("%s: entry.Info: %w", path, err)
testfs.go#L420: t.errorf("%s: mismatch\n\tentry = %s\n\tentry.Info() = %s\n", path, fentry, feentry)
testfs.go#L425: t.errorf("%s: mismatch:\n\tentry.Info() = %s\n\tfile.Stat() = %s\n", path, feinfo, finfo)
testfs.go#L432: t.errorf("%s: fs.Stat: %w", path, err)
testfs.go#L437: t.errorf("%s: fs.Stat(...) = %s\n\twant %s", path, finfo2, finfo)
testfs.go#L443: t.errorf("%s: fsys.Stat: %w", path, err)
testfs.go#L448: t.errorf("%s: fsys.Stat(...) = %s\n\twant %s", path, finfo2, finfo)
testfs.go#L455: t.errorf("%s: fsys.Lstat: %v", path, err)
testfs.go#L460: t.errorf("%s: mismatch:\n\tentry = %s\n\tfsys.Lstat(...) = %s", path, fentry, fientry2)
testfs.go#L465: t.errorf("%s: mismatch:\n\tentry.Info() = %s\n\tfsys.Lstat(...) = %s\n", path, feinfo, finfo2)
testfs.go#L477: t.errorf("%s: ReadDir returned %s with IsDir() = true, Type() & ModeDir = 0", dir, entry.Name())
testfs.go#L479: t.errorf("%s: ReadDir returned %s with IsDir() = false, Type() & ModeDir = ModeDir", dir, entry.Name())
testfs.go#L517: t.errorf("%s: diff %s:\n\t%s", dir, desc, strings.Join(diffs, "\n\t"))
testfs.go#L527: t.errorf("%s: Open: %w", file, err)
testfs.go#L534: t.errorf("%s: Open+ReadAll: %w", file, err)
testfs.go#L539: t.errorf("%s: Close: %w", file, err)
testfs.go#L550: t.errorf("%s: fsys.ReadFile: %w", file, err)
testfs.go#L562: t.errorf("%s: second call to fsys.ReadFile: %w", file, err)
testfs.go#L574: t.errorf("%s: fs.ReadFile: %w", file, err)
testfs.go#L582: t.errorf("%s: second Open: %w", file, err)
testfs.go#L587: t.errorf("%s: failed TestReader:\n\t%s", file, strings.ReplaceAll(err.Error(), "\n", "\n\t"))
testfs.go#L593: t.errorf("%s: %s: different data returned\n\t%q\n\t%q", file, desc, data1, data2)
testfs.go#L637: t.errorf("%s: %s(%s) succeeded, want error", file, desc, b)